#include <stdio.h>

int main() {
	int a, b, c, d;
	double t;
	scanf("%d %d %d %d", &a, & b, &c, &d);
	t = (a + b + c + d) / 4.0;
	printf(" %f", t);
}